<?=form_open('news/add')?>
<table class="form">
    <tr style="display:none;">
        <td class="label"><?=lang('news_category');?></td>
        <td><select name="cat_id" id="cat_id" class="w350">
            <option value="0">Loại tin tức</option>
            <?php echo $option_category ?>
            </select></td>
    </tr>
    <?php if($catid){ ?><script language="javascript">mkselected('cat_id','<?=$catid?>');</script><? } ?>
    <tr>
        <td width="150" class="required label">Tiêu đề</td>
        <td><input type="text" name="title_vn" id="title_vn" class="w710" value="<?=set_value('title_vn')?>"></td>
    </tr>
    <tr>
        <td width="150" class="required label">Tiêu đề (t. anh)</td>
        <td><input type="text" name="title_en" id="title_en" class="w710" value="<?=set_value('title_en')?>"></td>
    </tr>
    <tr>
        <td class="label">Hình ảnh <br />(478x250)</td>
        <td><a class="lib_img" href="javascript:imgLib.openLib({width:150,height:100,return_tag:'lb_image',action:'imgcrop'});"></a>
        <div class="lb_image"><input type="hidden" name="lb_image" value="" id="lb_image"></div></td>
    </tr>
    <tr>
        <td class="required label">Summary</td>
        <td><textarea class="w710" name="summary_vn" id="summary_vn"><?=set_value('summary_vn')?></textarea></td>
    </tr>
    <tr>
        <td class="required label">Summary(t. anh)</td>
        <td><textarea class="w710" name="summary_en" id="summary_en"><?=set_value('summary_en')?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?></td>
        <td><textarea class="wysiwyg" name="content_vn" id="content_vn"><?=set_value('content_vn')?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?>(t. anh)</td>
        <td><textarea class="wysiwyg" name="content_en" id="content_en"><?=set_value('content_en')?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?></td>
        <td><textarea class="w710" name="keyword_vn" id="keyword_vn"><?=set_value('keyword_vn')?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?>(t. anh)</td>
        <td><textarea class="w710" name="keyword_en" id="keyword_en"><?=set_value('keyword_en')?></textarea></td>
    </tr>
    <!--<tr>
        <td width="150" class="required label"><?=lang('news_source');?></td>
        <td><input type="text" name="source" id="source" class="w710" value="<?=set_value('source')?>"></td>
    </tr>-->
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td><input name="bl_active" type="checkbox" id="bl_active"  value="1" checked="checked">
            <!--<span style="padding:5px;">Home : <input type="checkbox" name="is_home" id="is_home" value="1" /></span>
            <span style="padding:5px;">Tin hot : <input type="checkbox" name="is_hot" id="is_hot" value="1" /></span>-->
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="bt_submit" value="" class="themmoi"></td>
    </tr>
</table>
<?=form_close()?>
<script language="javascript">
	$('#keyword_vn').tagsInput({width:'710px'});
	$('#keyword_en').tagsInput({width:'710px'});
</script>
